package com.zhongge.service;

import com.fasterxml.jackson.databind.JsonNode;
import com.zhongge.entity.Region;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;
import java.net.MalformedURLException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhongge
 * @since 2025-11-09
 */
public interface IRegionService extends IService<Region> {
    //初始化行政区域表：初始化一次即可
    JsonNode initRegion() throws IOException;

    //获取省份
    List<Region> getProvinces();

    //获取 市区
    List<Region> getCity(Integer provincesId);

    //获取 县
    List<Region> getCounties(Integer cityId);
}
